package cn.com.dhcc.ddi.datasource.service;

import java.io.File;

import org.springframework.stereotype.Service;

import cn.com.dhcc.app.core.service.BaseService;
import cn.com.dhcc.app.core.util.StrUtil;
/**
 * 本地磁盘服务
 * @author fxx
 * 2017-4-17 
 */
@Service
public class DataSourceLocalDiskService extends BaseService {
	
	/**
	 * 判断磁盘路径是否存在
	 * @param diskPath
	 * @return
	 */
	public boolean isLocalDiskOk(String diskDirectory){
		if (StrUtil.isNotBank(diskDirectory)) {
			File file = new  File(diskDirectory);
			if (file.exists()) {
				return true;
			}
		}
		return false;
	}
	
}
